package com.mayihr.fx.attributeBind.CheckBoxBinding;

import javafx.beans.property.BooleanProperty;

public class Goods{//商品类
    private boolean available;//是否有效   用原子类型表示
    private BooleanProperty hotSaleProperty;//是否热销 用可绑定属性表示

    public boolean getAvailable(){
        return available;
    }

    public void setAvailable(boolean newValue){
        this.available=newValue;
    }

    public boolean isAvailable() {
        return available;
    }

    public boolean isHotSaleProperty() {
        return hotSaleProperty.get();
    }

    public BooleanProperty hotSalePropertyProperty() {
        return hotSaleProperty;
    }

    public void setHotSaleProperty(boolean hotSaleProperty) {
        this.hotSaleProperty.set(hotSaleProperty);
    }
}
